/**
 * 
 */
package org.ucn.dmaa0914.gruppe6;

import java.util.ArrayList;
import java.util.Date;

/**
 * @author Kim Johannsen
 * @version 09-12-2014
 *
 */
public class Order extends IdObject {
	private Date date;
	private boolean isPaid;
	private int employee;
	private int customer;
	private ArrayList<PartOrder> partOrders;
	
	public Order()
	{
		super();
		
		// Assign current date
		this.date = new Date();
		
		this.isPaid = false;
		this.partOrders = new ArrayList<PartOrder>();
	}
	
	/**
	 * @return the partOrders
	 */
	public ArrayList<PartOrder> getPartOrders() {
		return partOrders;
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	/**
	 * @return the isPaid
	 */
	public boolean isPaid() {
		return isPaid;
	}
	/**
	 * @param isPaid the isPaid to set
	 */
	public void setPaid(boolean isPaid) {
		this.isPaid = isPaid;
	}
	/**
	 * @return the employee
	 */
	public int getEmployee() {
		return employee;
	}
	/**
	 * @param employee the employee to set
	 */
	public void setEmployee(int employeeId) {
		this.employee = employeeId;
	}
	/**
	 * @return the customer
	 */
	public int getCustomer() {
		return customer;
	}
	/**
	 * @param customer the customer to set
	 */
	public void setCustomer(int customerId) {
		this.customer = customerId;
	}
}
